package com.ae.base.client;

import com.ae.base.PlacedRegister;
import com.ae.base.block.PlacedItemTile;
import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.BlockRendererDispatcher;
import net.minecraft.client.renderer.IRenderTypeBuffer;
import net.minecraft.client.renderer.ItemRenderer;
import net.minecraft.client.renderer.tileentity.TileEntityRenderer;
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;

import javax.annotation.Nonnull;

public class PlacedItemTER extends TileEntityRenderer<PlacedItemTile> {
    public PlacedItemTER(TileEntityRendererDispatcher dispatcher) {
        super(dispatcher);
    }

    @Override
    public void render(@Nonnull PlacedItemTile tile, float partialTicks, @Nonnull MatrixStack matrixStack, @Nonnull IRenderTypeBuffer bufferIn, int combinedLightIn, int combinedOverlayIn) {
        PlacedRegister.placedMap.get(tile.getId()).render(tile.getColor(), tile, partialTicks, matrixStack, bufferIn, combinedLightIn, combinedOverlayIn);
    }
}
